package cc.comac.mom.service.impl;

import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import cc.comac.mom.api.ExcelImportCmd;
import cc.comac.mom.service.base.BaseService;
@RestController
@Service
public class ExcelImportCmdImpl extends BaseService implements ExcelImportCmd{

	
	@Override
	public void importExcel(MultipartFile file, String clz, Long userId, String ename) {
		
		
	}

	@Override
	public void downloadTemplate(String clz, String filename) throws ClassNotFoundException {
		XSSFWorkbook download = download(filename, Class.forName(clz));
		System.out.println(download);
	}

	

}
